package org.sanm.domain.order;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.sanm.domain.order.model.Order;
import org.sanm.domain.order.model.OrderListRes;
import org.sanm.domain.order.model.OrderReq;
import org.sanm.domain.order.model.OrderRes;


import java.util.List;

public interface OrderService extends IService<Order> {
    public Order add(OrderReq orderVo);
    public void update(OrderReq orderVo);

    public OrderRes getDetail(Integer id);
    public List<OrderRes> getByIds(List<Integer> ids);
    public Page<OrderListRes> list(
            Integer pageNum,
            Integer pageSize,
            String no,
            String projectName,
            String goodsName,
            String companyName,
            String startDate,
            String endDate
    );
}
